package cate.common.table.guild.task;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class GuildAffairRow extends ERow {
    @NoteField(value = "内政等级")
    public int level;

    @NoteField(value = "需要经验")
    public int requireExp;

    @NoteField(value = "升级材料")
    public String consumeStr;

    @NoteField(value = "奖励系数")
    public int ratio;

    @Override
    public void parse(XSSFRowWrap xrw) {
        super.parse(xrw);
        this.level = xrw.getInteger("内政等级", 1);
        this.id = this.level;
        this.requireExp = xrw.getInteger("需要经验", 1000);
        this.consumeStr = xrw.getString("升级材料", "");
        this.ratio = xrw.getInteger("奖励系数", 0);
    }

}
